"""author: wangxin
   data: 2021/11/21
   project: 王鑫 文件操作作业.py
"""



import requests

address = input("请输入你要下载的图片地址：")
r = requests.get(address)
# print(response.text)
name = input("请输入图片名：")
open(f'./img_{name}.jpg', 'wb').write(r.content)
print("下载完成")
